package ${package.Controller};

import org.springframework.web.bind.annotation.RequestMapping;
<#if restControllerStyle>
import org.springframework.web.bind.annotation.RestController;
<#else>
import org.springframework.stereotype.Controller;
</#if>
<#if superControllerClassPackage??>
import ${superControllerClassPackage};
</#if>
import ${package.Service}.${table.serviceName};
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import lombok.extern.slf4j.Slf4j;
import lombok.RequiredArgsConstructor;

/**
* <p>
* ${table.comment!} 前端控制器
* </p>
*
* @author ${author}
*/
@Slf4j
<#if restControllerStyle>
@RestController
<#else>
@Controller
</#if>
<#if kotlin>
class ${table.controllerName}<#if superControllerClass??> : ${superControllerClass}()</#if>
<#else>
<#if superControllerClass??>
 public class ${table.controllerName} extends ${superControllerClass} {
<#else>
@Tag("${table.comment!}")
@ApiSupport(author = "${author}", order = 1)
@RequestMapping("/${entity?uncap_first}")
@RequiredArgsConstructor
public class ${table.controllerName} {
</#if>

private final I${table.serviceName}  ${table.serviceName?uncap_first};
}
</#if>
